package java类及封装;

// Student.java
public class a {
    String studentId;
    String name;
    public static void main(String[] args) {
        String studentId;
        String name;
        a stu1 = new a();
        stu1.studentId = "20250801";
        stu1.name = "张三";

        a stu2 = new a();
        stu2.studentId = "20250802";
        stu2.name = "李四";

        System.out.println("学生1：" + stu1.studentId + " " + stu1.name);
        System.out.println("学生2：" + stu2.studentId + " " + stu2.name);
    }
}
